fix: update localhost port in examples from 8000 to 8010#453
fix: update localhost port in examples from 8000 to 8010#453parinporecha wants to merge 4 commits intoPostHog:masterfrom
Conversation
|
a73e1e1 to
0c3f19f
Compare
|
@marandaneto hi! I saw you lead the client libraries team, so thought of tagging you to get this moving. I don't know what timelines to expect for SDK reviews, so sorry if tagging you was premature! |
| @@ -0,0 +1,5 @@ | |||
| --- | |||
| pypi/posthog: patch | |||
There was a problem hiding this comment.
you can remove this since its just examples and not a user facing change
I was trying out the
example.pyusing local PostHog instance when I ran into these errors -ERROR:posthog:[FEATURE FLAGS] Unable to get feature variants: HTTPConnectionPool(host='localhost', port=8000): Max retries exceeded with url: /flags/?v=2 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x79abc05d9190>: Failed to establish a new connection: [Errno 111] Connection refused'))ERROR:posthog:error uploading: HTTPConnectionPool(host='localhost', port=8000): Max retries exceeded with url: /batch/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x79abbf066840>: Failed to establish a new connection: [Errno 111] Connection refused'))/flagsand/batchendpoints are not in the Django backend on:8000. For the local instance we need to point to the proxy port so it can reroute to the right service.